import request from '@/utils/request'
export function sysRole(params) {
  return request({
    url: '/sys/role',
    params
  })
}
// 新增
export function sysRolePost(data) {
  return request({
    url: '/sys/role',
    method: 'post',
    data
  })
}
// 编辑
export function sysRolePut(data) {
  return request({
    url: '/sys/role/' + data.id,
    method: 'put',
    data
  })
}
// 删除
export function sysRoleDel(id) {
  return request({
    url: '/sys/role/' + id,
    method: 'delete'
  })
}
// 获取企业信息
export function company(id) {
  return request({
    url: '/company/' + id
  })
}
